package eclipse;

public class Recursion {
    public static void main(String[] args) {
        long num = f1(5);
        System.out.println(num);
    }
    public static long f1(int num){
        if(num == 1){
            return 1;
        }
        return num * f1(num - 1) ;
    }
}
